package WashCard;

import java.util.List;

public class Test {
    public static void main(String[] args) {
        //1.买52张牌
        CardDemo cardDemo=new CardDemo();
        List<Card> cardList=cardDemo.buyCard();
       // System.out.println(cardList);
        //2.洗牌
        cardDemo.shuffle(cardList);
        //3.3个人  每个人   轮流揭牌5张
        List<List<Card>> hand=cardDemo.play(cardList);
        for (int i = 0; i < hand.size(); i++) {
            System.out.println("第"+(i+1)+"个人的牌有这些:  "+hand.get(i));
        }
    }
}
